<?php

/*

View Page (view_page.php)

*/

$page_title = "View Page";
$rank_check = 0;
include "header.inc.php";

print "$openHTML";

$findPage = fetch("SELECT * FROM game_pages2 WHERE id = '$page' AND game = '$game'");
if (($findPage[login_required] == 1) AND ($rank < 1))
{
	die("You do not have access to this page.$closeHTML");
}

if ($findPage[content])
{
	include "showpage2.inc.php";
	print "$findPage[content]";
}

print "$closeHTML";
?>